function search() {
    let keyword = $("#searchBox").val();
    if (keyword && keyword !== '') {
        window.location.href = '/search/' + keyword;
    }
}